//
//  ZHCollectionViewCell.m
//  SKU
//
//  Created by lingji001 on 2018/7/24.
//  Copyright © 2018年 lingji001. All rights reserved.
//

#import "ZHCollectionViewCell.h"
#import <Masonry.h>
@interface ZHCollectionViewCell ()

@property (nonatomic, strong) UILabel *contentLabel;

@end

@implementation ZHCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self initUI];
        [self configUI];
    }
    return self;
}

#pragma mark 初始化UI控件
- (void)initUI{
    self.contentLabel = [UILabel new];
    [self.contentView addSubview:self.contentLabel];
}

#pragma mark 为UI控件添加约束
- (void)configUI{
    [self.contentLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.mas_offset(0);
    }];
}

- (void)setModel:(AttrValues *)model{
    _model = model;
    self.contentLabel.text = model.valueName;
}

@end
